import Vue from 'vue'
import request from '@/itsoftUI/utils/request'
import qs from "qs"



const baseUrl = Vue.prototype.$itsoftUI.config.serviceUrl + "/repair"
//评价项目api
const projectApi = {
    // 获取等级
    GetLevel: function () {

        return request({
            url: baseUrl + '/commontProject/getLevel',
            method: 'post',
            data: qs.stringify()
        })
    },
    // 项目
    GetProject: function () {
        return request({
            url: baseUrl + '/commontProject/getProject',
            method: 'post',
            data: qs.stringify()
        })
    },
    // 添加评论等级
    SaveLevel: function (data) {
        const json = {
            data
        }
        return request({
            url: baseUrl + '/commontProject/saveLevel',
            method: 'post',
            data: qs.stringify(json)
        })
    },
    //  添加评论项目
    SaveProject: function (data) {
        const json = {
            data
        }
        return request({
            url: baseUrl + '/commontProject/saveProject',
            method: 'post',
            data: qs.stringify(json)
        })
    },

}
export {
    projectApi
}